package com.tanhua.dubbo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tanhua.domain.db.UserStatus;
import org.apache.ibatis.annotations.Update;

/**
 * @Author: Sword Goddess
 * @Date: 2021/9/18
 * @explain:
 */
public interface UserStatusMapper extends BaseMapper<UserStatus> {

    @Update("UPDATE tb_user_status SET status = 1,reasons_for_thawing = #{frozenRemarks} WHERE user_id = #{userId} AND status = 2")
    void upDate(Long userId,String frozenRemarks);

    @Update("UPDATE tb_user_status SET status = 1 WHERE user_id = #{userId} AND status = 2")
    void updateStatus(Long userId);

}
